package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ToString
public class Employee {
    private Long id;
    private String username;
    private String name;
    private String password;
    private String email;
    private Integer age;
    private boolean admin;
    private Department dept;
    //因为要回显员工拥有的role 所以要定义一个字段来接收
    private List<Role> roleList = new ArrayList<>();
    //员工状态
    private boolean status;
}